﻿using BarManager.Core.BusinessRules.Interfaces.Specification;
using BarManager.Core.BusinessRules.Interfaces.Validator;
using System.Collections.Generic;

namespace BarManager.Core.BusinessRules
{
    public class Rule<TEntity> where TEntity : class
    {
        public Rule(ValidatorType validatorType, ISpecification<TEntity> specification)
        {
            this.ValidatorType = validatorType;
            this.Specification = specification;
        }
        public ValidatorType ValidatorType { get; private set; }
        public ISpecification<TEntity> Specification { get; private set; }
    }

    public class RulesList<TEntity> : List<Rule<TEntity>> where TEntity : class
    { 
    
    }
}
